package com.kc.business.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Table(name = "kc_video")
@Data
public class BizVideo {
    @Id
    private Integer id;
    /*视频名称*/
    @NotBlank(message = "视频标题不能为空")
    private String title;
    /*视频封面图*/
    @NotBlank(message = "视频封面图不能为空")
    private String videoImage;
    /*视频地址*/
    @NotBlank(message = "视频地址不能为空")
    private String videoUrl;
    /*视频类别*/
    @NotBlank(message = "视频类别不能为空")
    private String videoType;
    /*状态*/
    @NotNull(message = "状态不能为空")
    private Integer status;
    /*删除标识*/
    private Integer isDeleted = 0;
    @Transient
    private String videoTypeName = "";
}
